package com.xqboss.web.controller.user;

import com.xqboss.apps.vo.user.UserIdentityPermVo;
import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
import com.xqboss.common.core.controller.BaseController;
import com.xqboss.common.core.domain.R;
import org.springframework.web.bind.annotation.RequestBody;
import com.xqboss.apps.service.user.UserIdentityPermWrenchPresenterService;
import com.xqboss.apps.domain.user.UserIdentityPermWrenchPresenter;
import io.swagger.annotations.Api;
import com.xqboss.chain.domain.chain.dto.BaseRequest;
import io.swagger.annotations.ApiOperation;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 扳手转增配置
 * </p>
 *
 * @author 木鱼
 * @since 2024-01-22
 */
@RestController
@Slf4j
@Api(tags = "扳手转增配置")
@RequestMapping("/web/userIdentityPermWrenchPresenter")
@RequiredArgsConstructor
public class UserIdentityPermWrenchPresenterController extends BaseController {
//    private final UserIdentityPermWrenchPresenterService basicService;
//
//    /**
//     * 扳手转增配置 列表查询
//     */
//    @GetMapping("/list")
//    @ApiOperation("扳手转增配置 列表查询")
//    public R<List<UserIdentityPermWrenchPresenter>> loadList(@Validated BaseRequest request) {
//        return R.ok(basicService.selectBasicList(request));
//    }
//
//    /**
//     * 扳手转增配置 根据id查询
//     */
//    @GetMapping("/selectById")
//    @ApiOperation("扳手转增配置 根据id查询")
//    public R<UserIdentityPermWrenchPresenter> selectById(@RequestParam("id") Long id) {
//        return R.ok(basicService.selectByIdBasic(id));
//    }
//
//    /**
//     * 扳手转增配置 修改
//     */
//    @PostMapping("/update")
//    @ApiOperation("扳手转增配置 修改")
//    public R<Boolean> update(@Validated @RequestBody UserIdentityPermWrenchPresenter record) {
//        return R.ok(basicService.updateBasic(record));
//    }
//
//    /**
//     * 扳手转增配置 新增
//     */
//    @PostMapping("/insert")
//    @ApiOperation("扳手转增配置 新增")
//    public R<Boolean> insert(@Validated @RequestBody UserIdentityPermWrenchPresenter record) {
//        return R.ok(basicService.saveBasic(record));
//    }
//
//    /**
//     * 扳手转增配置 删除
//     */
//    @PostMapping("/delete/{id}")
//    @ApiOperation("扳手转增配置 删除")
//    public R<Boolean> delete(@PathVariable Long id) {
//        return R.ok(basicService.removeBasic(id));
//    }
//
//
//    /**
//     * 根据身份id
//     * 获取扳手转增配置
//     *
//     * @return string
//     */
//    @PreAuthorize("@ss.hasPermi('web:user:identity:Perm:getWrenchConfig')")
//    @ApiOperation("获取扳手转增配置")
//    @PostMapping("/getWrenchConfig")
//    public R<UserIdentityPermWrenchPresenter> getWrenchConfig(@PathVariable
//                                                              @NotNull(message = "身份id不能为空")
//                                                              @ApiParam(value = "身份id", required = true) Long identityId) {
//        UserIdentityPermWrenchPresenter presenter = basicService.getWrenchConfig(identityId);
//        return R.ok(presenter);
//
//    }



}
